<%--
  Created by IntelliJ IDEA.
  User: RE1UY
  Date: 2021/10/9
  Time: 9:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加新商品</title>
</head>
<body>
<center>
    <form action="good/setgood.do" method="post">
        <table>
            <tr>
                <td>商品名称</td>
                <td><input type="text" name="goodname"></td>
            </tr>
            <tr>
                <td>商品价格</td>
                <td><input type="text" name="goodprice" onchange="if(/\D/.test(this.value)){alert('请输入数字');this.value='';}"></td>
            </tr>
            <tr>
                <td>商品介绍</td>
                <td><input type="text" name="goodintro" style="width: 200px;height: 100px"></td>
            </tr>
            <tr>
                <td>商品分类</td>
                <td>
                    <select name="goodtag">
                        <option value="数码">数码</option>
                        <option value="家居">家居</option>
                        <option value="图书">图书</option>
                        <option value="食品">食品</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><input type="submit" value="添加"></td>
            </tr>
        </table>
    </form>
</center>

</body>
</html>
